package com.thingsgrid.firmware.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thingsgrid.firmware.entity.FirmwareUpgradeMode;

import java.util.List;
import java.util.Map;

public interface IBatchupgradeService {
	List<Map> getProduct();

	List<Map> getFirmversion(String product_id, String upgrade_type);

	List<Map> getWantedVersion(String firmware_id, String upgrade_type, String firmware_version);

	Map<String,Object> getDeviceList(Page page, String product_id, String firmware_version);

	FirmwareUpgradeMode saveUpgradeMetnod(FirmwareUpgradeMode firmwareUpgradeMode);

	void insertFirmwareRecord(FirmwareUpgradeMode flag, String oldversion);

	List getDeviceList(String product_id, String firmware_version, List<String> devices);

	List<Map> finddevice(String firmware_id, String oldversion, String newversion);
}
